﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace web.component
{
    public class global_const
    {
        public global_const()
        {
            //
            // TODO: Add constructor logic here
            //
        }
        #region date time format
        public const string CS_DECIMAL_SYMBOL = ".";
        public const string CS_DIGIT_GROUP_SYMBOL = ",";
        public const string CS_DISPLAY_DATE_FORMAT = "dd/MM/yyyy";
        public const string CS_DISPLAY_DATETIME_FORMAT = "dd/MM/yyyy HH:mm";
        public const string CS_DISPLAY_TIME = "hh:mm";
        public const string CS_EDIT_DATE_FORMAT = "dd/MM/yyyy";
        public const string CS_EDIT_DATETIME_FORMAT = "dd/MM/yyyy HH:mm";
        #endregion

        #region web Link
        //
        public enum E_WEB_LINK
        {
            LIEN_KET = 1, //"Liên kết"
            TEXT = 2,   //Text link
            DOI_TAC = 3,    //Đối tác
            SLIDE_HOME = 4, //Slide trang chủ
            ADVS_HOME_TOP1 = 5, // trang chu - canh slide
            ADVS_HOME_TOP2 = 6, //Quảng cáo trang chủ - duoi slide
            ADVS_BOTTOM = 7, // trang chu - quang cao duoi
            ADVS_BOTTOM_PAGE = 8, // quang cao ben trong trang
            CUSTOM_BLOCK = 9    // thong tin custom block
        }
        //public const string LINK_LIENKET = "LK";
        //public const string LINK_LIENKET_DESC = "Liên kết";
        //public const string LINK_TEXT = "TX";
        //public const string LINK_TEXT_DESC = "Text link";
        //public const string LINK_DOITAC = "DT";
        //public const string LINK_DOITAC_DESC = "Đối tác";
        //public const string LINK_SLIDE_HOME = "SL";
        //public const string LINK_SLIDE_HOME_DESC = "Slide trang chủ";
        //public const string LINK_SLIDE_ADVS_HOME = "SA";
        //public const string LINK_SLIDE_ADVS_HOME_DESC = "Quảng cáo trang chủ";

        #endregion 

        //store config setting file
        #region storage file
        public const string WEBSITE_URL = "websiteurl";
        public const string STORAGE_CONFIG = "storeconfig";
        public const string STORAGE_FOLDER = "storage";
        public const string IMAGE_FOLDER = "images";
        public const string STORAGE_SETTING_FILE = "setting_{0}.config";
        #endregion

        #region config email
        public const string SMTPHOST = "smtphost";
        public const string SMTPPORT = "smtpport";
        public const string SMTPUSER = "smtpuser";
        public const string SMTPPASS = "smtppass";
        public const string EMAIL = "email";    //email receiver
        #endregion

        #region config common
        //page
        public const string PAGE_NAME = "pagename";       
        public const string KEYWORD = "keywords";
        public const string DESCRIPTION = "description";
        public const string POWEREDBY = "poweredby";
        public const string DCCREATOR = "dccreator";
        public const string AUTHOR = "author";
        public const string ROBOTS = "robots";
        public const string LANGUAGE = "language";
        public const string CREATED = "created";
        public const string MODIFIED = "modified";
        public const string REVISITAFTER = "revisitafter";
        public const string DATEPUBLICHCATION = "datepublichcation";
        public const string HOMEPAGE = "homepage";

        public const string PAGE_FOOTER = "pagefooter";
        public const string PAGE_FOOTER1 = "pagefooter1";
        public const string PAGE_FOOTER2 = "pagefooter2";
        public const string PAGE_FOOTER3 = "pagefooter3";
        public const string PAGE_FOOTER4 = "pagefooter4";
        //contact
        public const string CONTACT = "contact";
        public const string CONTACTDETAIL = "contactdetail";
        //support
        public const string SUPPORT = "support";
        public const string YAHOO = "yahoo";
        public const string SKYPER = "Skyper";
        //about
        public const string ABOUT_HOME = "abouthome";
        public const string ABOUT_SHORT = "aboutshort";
        public const string ABOUT_CONTENT = "aboutcontent";
        public const string PRODUCT_CONTENT = "productcontent";
        #endregion

        #region translate 
        public const string TRANS_XML_FILE = "trans_{0}\\trans_gid{1}.xml";
        public enum E_TRANS_GROUP
        {
            COMMON = 1,
            COMMON_FORM = 2,
            PAGE_LAYOUT = 3, 
            PRODUCT = 4, 
            ARTICLE = 5
        };
        #endregion

        #region language
        public const int LANGUAGE_ID_DEFAULT = 1;
        public const string LANGUAGE_CODE_DEFAULT = "vi";
        #endregion

        #region email template
        public const int EMAIL_ID_FORGOT_PASSWORD = 1;
        public const int EMAIL_ID_NEW_ACCOUNT = 2;
        public const int EMAIL_ID_CLIENT_CONTACT = 3;
        public const int EMAIL_ID_ORDER = 4;
        public const int EMAIL_ID_ORDER_ADMIN = 5;
        
        #endregion

        #region category_param
        //san pham
        public enum E_PRODUCT_PARAM
        {
            NORMAL = 0,
            HOT = 1,
            NEW = 2,
            BEST = 3,
            FAVOR = 4,
            SALE = 5,
            MOST_VIEW = 6
        }
        //tin tuc
        public enum E_ARTICLE_PARAM
        {
            NORMAL = 0,
            HOT = 1,
            NEW = 2,
            MOST_VIEW = 3,
            USER_FULL = 4,
            TOP = 5
        }
        #endregion

        #region vector
        public const string E_VECTER_HORIZONTAL = "horizontal";
        public const string E_VECTER_VERTICAL = "vertical";
        #endregion

        #region order
        public const string ACTIVE_CODE_VANGLAI = "vanglai";

        public const int GOURP_CUSTOMER = 2;

        public const string ORDER_CODE = "UBUY_9030";
        #endregion

        #region payment_method
        public enum E_PAYMENT_TYPE
        {
            pay_at_address = 0,
            pay_at_ubuy = 1,
            pay_paypal = 2,
            pay_visa = 3
        }
        #endregion

        #region payment_cart
        public enum E_CART_TYPE
        {
            full_cart = 0,
            mini_cart = 1,
            tiny_cart = 2
        }
        #endregion

        #region payment_status
        public enum E_PAYMENT_STATUS
        {
            START = 0,
            PROCESS = 1,
            SHIPPING = 2,
            SUCCESS = 3,
            CANCEL = 4
        }
        #endregion
    }
}
